home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / res / detect / photobucket.xml < prev    next >
Extensible Markup Language  |  2007-10-12  |  5KB  |  161 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <service name="photobucket"
  3.          version="$Id: photobucket.xml 15053 2007-09-25 19:51:36Z chris $"
  4.          xmlns="http://www.flock.com/web-detective#">
  5.  
  6.   <strings>
  7.     <string name="domains" value="photobucket.com"/>
  8.     <string name="userloginURL">
  9.       <![CDATA[http://photobucket.com/login.php]]>
  10.     </string>
  11.     <string name="userprofileURL">
  12.       <![CDATA[http://photobucket.com/images/search/%accountid%]]>
  13.     </string>
  14.     <string name="serviceloginURL">
  15.       <![CDATA[http://photobucket.com/svc/servicelogin.php]]>
  16.     </string>
  17.     <string name="apiURL">
  18.       <![CDATA[http://photobucket.com/svc/api.php]]>
  19.     </string>
  20.   </strings>
  21.  
  22.   <sessioncookies>
  23.     <cookie host=".photobucket.com" name="PHPSESSID" path="/"/>
  24.     <cookie host=".photobucket.com" name="GUID" path="/"/>
  25.     <cookie host=".photobucket.com" name="pbauth" path="/"/>
  26.     <cookie host=".photobucket.com" name="pbpassword" path="/"/>
  27.     <cookie host=".photobucket.com" name="pbusername" path="/"/>
  28.     <cookie host=".photobucket.com" name="AAMBLC" path="/"/>
  29.     <cookie host=".photobucket.com" name="BLCOOKIE" path="/"/>
  30.     <cookie host=".photobucket.com" name="pb_action_bitmask" path="/"/>
  31.     <cookie host=".photobucket.com" name="pb_action_timestamp" path="/"/>
  32.     <cookie host=".photobucket.com" name="LE0" path="/"/>
  33.     <cookie host=".photobucket.com" name="LE1" path="/"/>
  34.     <cookie host=".photobucket.com" name="LE2" path="/"/>
  35.     <cookie host=".photobucket.com" name="LE3" path="/"/>
  36.     <cookie host=".photobucket.com" name="LE4" path="/"/>
  37.     <cookie host=".photobucket.com" name="__utma" path="/"/>
  38.     <cookie host=".photobucket.com" name="__utmb" path="/"/>
  39.     <cookie host=".photobucket.com" name="__utmc" path="/"/>
  40.     <cookie host=".photobucket.com" name="__utmz" path="/"/>
  41.   </sessioncookies>
  42.  
  43.   <detect type="login">
  44.     <url domain="photobucket.com"/>
  45.     <form>
  46.       <xpath name="username" extract="value">
  47.         <![CDATA[//input[@id="username"]]]>
  48.       </xpath>
  49.       <xpath name="password" extract="value">
  50.         <![CDATA[//input[@id="password"][@type="password"]]]>
  51.       </xpath>
  52.     </form>
  53.   </detect>
  54.  
  55.   <detect type="login">
  56.     <url domain="photobucket.com" />
  57.     <form>
  58.       <field name="usernameemail" extractas="username"/>  
  59.       <field name="password" type="password"/>
  60.     </form>
  61.   </detect>
  62.   
  63.   <detect type="login">
  64.     <url domain="photobucket.com">
  65.       <path contains="svc/servicelogin.php"/>
  66.     </url>
  67.     <form>
  68.       <field name="username"/>  
  69.       <field name="password" type="password"/>
  70.     </form>
  71.   </detect>
  72.  
  73.   <detect type="signup">
  74.     <url domain="photobucket.com"><path contains="/register.php"/></url>
  75.     <form>
  76.       <field tagname="input" name="username"/>
  77.       <field tagname="input" name="password2" type="password" extractas="password"/>
  78.     </form>
  79.   </detect>
  80.  
  81.   <detect type="changepassword">
  82.     <url domain="photobucket.com">
  83.       <querystring contains="action=accountoptions"/>
  84.       <querystring contains="category=password"/>
  85.     </url>
  86.     <document>
  87.       <regexp re1="username">
  88.         <![CDATA[/Username: .*>(.*)<\/span>/]]>
  89.       </regexp>
  90.     </document>
  91.     <form>
  92.       <xpath name="password" extract="value">
  93.         <![CDATA[[@name="changePW"]//input[@type="password"][@name="accountOptions[confirmPW]"]]]>
  94.       </xpath>
  95.     </form>
  96.   </detect>
  97.  
  98.   <detect type="loggedin">
  99.     <xpath><![CDATA[//table[@id="panelHeader"]//div[@id="menuWelcome"]/a/text()[contains(.,"logout")]]]></xpath>
  100.   </detect>
  101.  
  102.   <detect type="loggedin">
  103.     <xpath><![CDATA[//table[@id="tblHeaderFrame"]//td[@id="navUserMenu"]/a/text()[contains(.,"logout")]]]></xpath>
  104.   </detect>
  105.   
  106.   <detect type="loggedin">
  107.     <url><path contains="svc/servicelogin.php"/></url>
  108.     <xpath><![CDATA[//p/text()[contains(.,"You have granted Flock")]]]></xpath>
  109.   </detect>
  110.  
  111.   <detect type="loggedout">
  112.     <url domain="photobucket.com">
  113.       <querystring contains="action=logout"/>
  114.     </url>
  115.   </detect>
  116.  
  117.   <detect type="loggedout">
  118.     <cookies>
  119.       <cookie nomatch="true" host=".photobucket.com" name="pbauth" path="/"/>
  120.     </cookies>
  121.   </detect>
  122.  
  123.   <detect type="loggedout">
  124.     <xpath><![CDATA[//table[@id="menuTop"]//a/text()[contains(.,"log in")]]]></xpath>
  125.   </detect>
  126.  
  127.   <detect type="loggedout">
  128.     <xpath><![CDATA[//form[@id="formHeaderLogin"]//input[@type="submit"][@name="login"]]]></xpath>
  129.   </detect>
  130.  
  131.   <detect type="loggedout">
  132.     <xpath><![CDATA[//div[@id="groupHeaderLoginLinks"]//a[@href="http://photobucket.com/login"]]]></xpath>
  133.   </detect>
  134.  
  135.   <detect type="accountinfo">
  136.     <regexp re1="userid">
  137.       <![CDATA[/welcome, (.+?)</]]>
  138.     </regexp>
  139.   </detect>
  140.  
  141.   <detect type="person">
  142.     <url>
  143.       <regexp re1="userid">
  144.         <![CDATA[/photobucket\.com\/albums\/\w*?\/(\w*)/]]>
  145.       </regexp>
  146.     </url>
  147.   </detect>
  148.   <detect type="media">
  149.     <url>
  150.       <regexp re1="userid">
  151.         <![CDATA[/photobucket\.com\/albums\/\w*?\/(\w*)/]]>
  152.       </regexp>
  153.     </url>
  154.   </detect>
  155.  
  156.   <detect type="apiauth">
  157.     <regexp re1="user_id"><![CDATA[/name="user_id" value="(\w+)"/]]></regexp>
  158.   </detect>
  159.  
  160. </service>
  161.